# -*- encoding: utf-8 -*-
"""
File Name: template_loader
Description:
Author : 'lirui'
date: 2024/1/8
Contact: marjey_lee@163.com
Change Activity:
2024/1/8:
"""
import ll


class TemplateLoader:
    def __init__(self):
        self.templates = ll.config.ConfigLoader.load_from_file(
            'modules/zabbix_utils/utils/template/request_template.py'
        )

    def load(self, obj, func):
        return self.templates[obj][func]


TEMPLATE_LOADER = TemplateLoader()
